package com.itheima.consumer.controller;

import com.itheima.consumer.config.MyRedisProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @作者 itcast
 * @创建日期 2020/11/10 14:28
 **/
@RestController
public class ConfigController {
    @Autowired
    MyRedisProperties myRedisProperties;
    @GetMapping("config")
    public MyRedisProperties config(){
        return myRedisProperties;
    }
}
